package com.carleasoft.mps.adu.business.dept.bean.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 部门信息表
 * </p>
 *
 * @author ztm
 * @since 2021-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_dept")
@ApiModel(value="AuthorityDept对象", description="部门信息表")
public class DeptEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "上级部门id")
    @TableField("PARENT_DEPT_CODE")
    private String parentDeptCode;

    @ApiModelProperty(value = "部门编码")
    @TableField("DEPT_CODE")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    @TableField("DEPT_NAME")
    private String deptName;

    @TableField("DEPT_NUMBER")
    private String deptNumber;

    @ApiModelProperty(value = "部门备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "1-正常,2-停用")
    @TableField("DEPT_STATUS")
    private Integer deptStatus;



    @ApiModelProperty(value = "1.分支机构，2.部门")
    @TableField("DEPT_TYPE_CODE")
    private String deptTypeCode;

    @ApiModelProperty(value = "部门所属组织")
    @TableField("ORGANIZATION_CODE")
    private String organizationCode;

    @TableField(value = "CREATE_PERSON_CODE",fill = FieldFill.INSERT)
    private String createPersonCode;

    @TableField(value = "CREATE_PERSON_NAME",fill = FieldFill.INSERT)
    private String createPersonName;

    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_PERSON_CODE",fill = FieldFill.UPDATE)
    private String updatePersonCode;

    @TableField(value = "UPDATE_PERSON_NAME",fill = FieldFill.UPDATE)
    private String updatePersonName;

    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "部门全路径")
    @TableField("FULL_PATH")
    private String fullPath;
    /**
     * 排序值
     */
    @TableField(value = "SORT")
    private Integer sort;
    /**
     * 排序权重
     */
    @TableField(value = "SORT_DATE")
    private Long sortDate;



}
